import qs from '@/utils/querystring';
import loader from '@/libs/loader';
import loadRouter from './loadRouter'
import './loadStyle'
// 调试使用，正式环境debug=1强制开启控制台
const query = qs.parse(window.location.search)
if (process.env.NODE_ENV == 'production' && query.debug == 1) {
  loader('https://cdn.133.cn/ticket/h5/lib/eruda-2.4.1.js').then(() => {
    window.eruda.init()
  })
}

export default function boot(app: any) {
  loadRouter(app)
  return app
}
